package main

import (
	"../model"
	"../pkg/settings"
)

func SyToTable() {
	configPath := "src/job/conf/app.ini"
	settings.SetUp(configPath)
	settings.MasterDB.Sync2(new(model.Auth))
	settings.MasterDB.Sync2(new(model.CronTime))
	settings.MasterDB.Sync2(new(model.Client))
	settings.MasterDB.Sync2(new(model.Server))
}

func main() {
	SyToTable()
}
